Transcription: When you rotate the ball, the discs are rotated as well. The light from the photodiode goes through the holes of the disc to the light detector. The light is constantly interrupted during the disc rotation. Interrupted signals are counted by the detector and passed on to the computer.